home *** CD-ROM | disk | FTP | other *** search
/ Strategy Challenges Collection / Strategy Challenges Collection.iso / pc / demo / demodata / menu.dxr / 00155.ls < prev    next >
Encoding:
Text File  |  1996-10-02  |  847 b   |  43 lines

  1. on enterFrame
  2.   global gBeenThere, gVoiceFlag
  3.   if gBeenThere = 0 then
  4.     if gVoiceFlag = 0 then
  5.       puppetSound("SubMain.aif")
  6.       set gVoiceFlag to 1
  7.     end if
  8.     set gBeenThere to 1
  9.   end if
  10. end
  11.  
  12. on exitFrame
  13.   timeOutCheck()
  14.   Rollovers()
  15.   go(the frame)
  16. end
  17.  
  18. on Rollovers
  19.   if rollOver(10) then
  20.     set the castNum of sprite 8 to the number of member "SC1_HL.PICT"
  21.     updateStage()
  22.     repeat while rollOver(10)
  23.       if the mouseDown then
  24.         exit
  25.       end if
  26.     end repeat
  27.     exit
  28.   end if
  29.   if rollOver(11) then
  30.     set the castNum of sprite 8 to the number of member "SC2_HL.PICT"
  31.     updateStage()
  32.     repeat while rollOver(11)
  33.       if the mouseDown then
  34.         exit
  35.       end if
  36.     end repeat
  37.     exit
  38.   end if
  39.   set the castNum of sprite 8 to the number of member "SC_all_Up.PICT"
  40.   updateStage()
  41.   updateStage()
  42. end
  43.